package net.hn.hnms.biz.safety.monitor.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 智呈物联 pan'sx
 * 2022/7/31 9:26
 * 1.0 version
 *
 */
@Deprecated //规则重置 按胡永海 发的图算
//@Entity
@Data
@ApiModel("安全监控报警规则设定表")
@Table(name = "alarm_rules")
public class AlarmRules {
    @Id
    @ApiModelProperty("报警级别")
    private String level;

    @Column(precision  =10,scale=3)
    @ApiModelProperty("co最小取值 单位：ppm")
    private double coMinValue;

    @Column(precision  =10,scale=3)
    @ApiModelProperty("co最大取值 单位：ppm")
    private double coMaxValue;

    @Column
    @ApiModelProperty("持续时间，毫秒数")
    private Long coDuration;

    @Column(precision  =10,name = "ch4_min_value",scale=3)
    @ApiModelProperty("ch4最小取值 单位：%")
    private double ch4MinValue;

    @Column(precision  =10, name = "ch4_max_value",scale=3)
    @ApiModelProperty("ch4最大取值 单位：%")
    private double ch4MaxValue;

    @Column(name = "ch4_duration")
    @ApiModelProperty("持续时间，毫秒数")
    private Long ch4Duration;


}
